package com.xiaoyu.test;

/**
 * ${DESCRIPTION}
 *
 * @author muxiaoyu
 * @create 2017/05/09 13:20
 **/
public class ThreadDemo extends Thread {
    private String threadId;

    @Override
    public void run() {
        for (int i = 1; i < 100; i++) {
            System.out.println("线程" + threadId + "第" + i + "次运行");
        }
    }

    public String getThreadId() {
        return threadId;
    }

    public void setId(String tPriority) {
        this.threadId = tPriority;
    }

    public ThreadDemo(String threadId) {
        this.threadId = threadId;
    }


}
